--- glib-2.32.2/glib/gtimer.c	2012-04-12 23:39:20.000000000 +0000
+++ glib-2.32.2-patched/glib/gtimer.c	2012-11-04 19:26:27.000000000 +0000
@@ -529,13 +529,13 @@
        *   YYYY-MM-DDTHH:MM:SS.MMMMMMZ
        */
       retval = g_strdup_printf ("%4d-%02d-%02dT%02d:%02d:%02d.%06ldZ",
-                                tm->tm_year + 1900,
-                                tm->tm_mon + 1,
-                                tm->tm_mday,
-                                tm->tm_hour,
-                                tm->tm_min,
-                                tm->tm_sec,
-                                time_->tv_usec);
+                                (int) tm->tm_year + 1900,
+                                (int) tm->tm_mon + 1,
+                                (int) tm->tm_mday,
+                                (int) tm->tm_hour,
+                                (int) tm->tm_min,
+                                (int) tm->tm_sec,
+                                (long int) time_->tv_usec);
     }
   else
     {
